Piwik\Plugins\UserCountry\LocationProvider A

Total Complexity 67
Dependencies 11
Dependents 23
Total lines 463
Lines of code 198
Logical lines of code 123
Comment lines 137
Methods 24
Properties 1

Methods 24

Method Rating Maintainability Complexity Lines of code
prettyFormatLocation()
A
46 14 38
completeLocationResult()
A
51 11 28
getAllProviderInfo()
S
46 6 39
getAllProviders()
S
62 4 12
getProviderById()
S
66 4 8
getAvailableProviders()
S
66 3 9
getIpFromInfo()
S
65 3 8
getCurrentProviderId()
S
66 3 8
getDefaultProviderId()
S
71 2 6
setCurrentProvider()
S
63 2 10
getLocationProviders()
S
67 2 8
getId()
S
76 1 4
getCurrentProvider()
S
79 1 3
getLocation()
S
100 1 0
isAvailable()
S
100 1 0
getUsageWarning()
S
82 1 3
isVisible()
S
81 1 3
activate()
S
91 1 2
renderSetUpGuide()
S
82 1 3
renderConfiguration()
S
82 1 3
getSupportedLocationInfo()
S
100 1 0
getInfo()
S
100 1 0
isWorking()
S
100 1 0
canBeUsedForLocationBasedSecurityChecks()
S
81 1 3